package com.xhtt.fzxy.console.handler.post;

import com.xhtt.fzxy.console.handler.BaseHandler;

import net.lastcoder.ifserver.util.HttpUtil;

import org.json.JSONArray;
import org.json.JSONObject;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * auth: WenYF
 * date: 2018/5/19
 */
public class GetServerInfo extends BaseHandler {
    
    @Override
    public void process(HttpServletRequest req, HttpServletResponse resp, ProcessRetWrapper ret) 
            throws IOException {
//        HttpUtil.HttpResult httpResult = HttpUtil.requestStr(sBaseUrl + "get_server_info"
//                , "POST", sHeaders, "");
        JSONArray infos = new JSONArray();
        infos.put("基本信息：" + "xxxxxxxxxxx");
        infos.put("基本信息：" + "xxxxxxxxxxx");
        infos.put("基本信息：" + "xxxxxxxxxxx");
        infos.put("基本信息：" + "xxxxxxxxxxx");
        infos.put("基本信息：" + "xxxxxxxxxxx");
        JSONObject retJson = new JSONObject();
        retJson.put("infos", infos);
        ret.data = retJson;
    }
}
